package org.osami.identification.impl;

import java.io.ByteArrayOutputStream;
import java.io.FileNotFoundException;
import java.io.PrintStream;
import java.net.InetAddress;
import java.net.NetworkInterface;
import java.net.SocketException;
import java.net.UnknownHostException;
import java.util.Enumeration;
import java.util.Hashtable;

import org.osami.identification.NodeIdentification;
import org.osgi.framework.BundleActivator;

import org.osgi.framework.BundleContext;

public class NodeIdentificationImpl implements NodeIdentification {
	String ID;
	/*
	 * (non-Javadoc)
	 * @see org.osgi.framework.BundleActivator#start(org.osgi.framework.BundleContext)
	 */
	public NodeIdentificationImpl(String id) {
		ID = id;
	}
	@Override
	public String getId() {
		return ID;
	}
	@Override
	public NodeIdentification makeFromString(String id) {
		return new NodeIdentificationImpl(id);
	}
	@Override
	public boolean isTheSame(NodeIdentification aId) {
		boolean ret = false;
		if (aId.getId().compareTo(ID) == 0)
			ret = true;
			
		return ret;
	}


	
}
